package com.hex.liyue.lookingdatemodule.presenter;

import com.hex.liyue.commonmodule.bean.BaseBean;
import com.hex.liyue.commonmodule.manager.HttpManager;
import com.hex.liyue.commonmodule.manager.UserManager;
import com.hex.liyue.commonmodule.net.ResponseListener;

/**
 * Created by WJ on 2016/6/17.
 */
public class AboutPresenter {
    private IAboutView iAboutView;

    public AboutPresenter(IAboutView iAboutView) {
        this.iAboutView = iAboutView;
    }

    public void getReport(String target_id, String type,String reason, String content) {
        HttpManager.getInstance().getReport(UserManager.getUserId(),type, target_id, reason, content,
                new ResponseListener<BaseBean>() {
                    @Override
                    public void onSuccess(BaseBean baseBean) {
                        iAboutView.setAdapter(baseBean);
                    }

                    @Override
                    public void onFailure(String responseresult) {
                        iAboutView.showT(responseresult);
                    }
                }
        );

    }
}
